package com.danbay.cloud.device.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yangyanchen on 2018/1/6
 *         Copyright © 2016 －2017 旦倍科技
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("collector_device")
public class DeviceCollector {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String deviceModel;

    /**
     * 1.电表采集器
     * 2.水表采集器
     */
    private String deviceType;

    private String deviceId;

    private String macAddress;

    private Long houseInfoId;

    private String version;

    private String address;

    private Long centerControl;

    private Long province;

    private Long city;

    private Long area;

    private Integer meterNum;

    private Long roomId;

    private Long contractInfo;

    private Long user;

    private String addStatus;

    private String status;

    private String hasDelete;

    private Date addTime;

}
